package com.powernode.service;

import com.github.pagehelper.PageInfo;
import com.powernode.domain.Customer;
import com.powernode.dto.CutomerDto;
import org.apache.ibatis.annotations.Param;

public interface CustomerService{


    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    /**
     * 分页查询客户
     * @param cutomerDto
     * @return
     */

    PageInfo<Customer> queryCustomerForPage(@Param("c") CutomerDto cutomerDto);

    //转移客户
    void changeCustomerUser(Integer userId, Integer[] customerIds);
}
